home *** CD-ROM | disk | FTP | other *** search
- Path: ws180223.kbu.switzerland.attgis.com!elaroche
- From: elaroche@smtpadc.switzerland.attgis.com (Eric Laroche)
- Newsgroups: comp.lang.c
- Subject: Re: Segmentation fault at return statement. Can't figure out ....
- Message-ID: <elaroche.219.0015241C@smtpadc.switzerland.attgis.com>
- Date: 24 Jan 96 21:08:19 GMT
- References: <4dm2n1$egk@murphy.servtech.com>
- Sender: news@ncrcha.switzerland.attgis.com
- Organization: AT&T Global Information Solutions
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
-
- In article <4dm2n1$egk@murphy.servtech.com> avi@servtech.com (Avijit
- Dasgupta) writes:
-
- ...
- >(dbx) where
- >=> [1] test( ) at line 83
- >dbx: bad data address
- >dbx fetch at 0x697075a4 failed - I/O error
- ^^^^^^
- This looks like the ASCII string fragment "upi" or "ipu", depending on the
- byte order. Try to figure out if test() writes beyond the bounds of an
- automatic string buffer. I would suggest using asserts in test(), like
- e.g. assert( strlen(s) < sizeof(buf) ).
-
- >dbx : attempt to read stack failed - bad frame pointer
-
- Hope this helps.
- --Eric
-
- ----
- Eric Laroche -- elaroche@smtpadc.switzerland.attgis.com, laroche@access.ch
-